package com.mes.basicdata.service;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bstek.dorado.annotation.DataProvider;
import com.bstek.dorado.annotation.DataResolver;
import com.mes.basicdata.dao.iface.IOperationPartDao;
import com.mes.basicdata.domain.OperationPart;
import com.mes.common.service.BasicService;
@Service
public class OperationPartService extends BasicService<OperationPart>{

	@Autowired 
	private IOperationPartDao operationPartDao;
	
	@DataProvider
	public List<OperationPart> getOperationPartListByOperationUid(String operationUid) throws Exception{
		return operationPartDao.getOperationPartListByOperationUid(operationUid);
	}
	
	@DataProvider
	public Integer getPartCount(){
		return operationPartDao.getPartCount();
	}
	
}
